<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/layouts/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Production详情</title>
    <%@include file="/WEB-INF/layouts/detail-header.jsp" %>
</head>
<body>

<div class="create-page tpanel">
    <div class="panel-content">
        <div class="container-fluid">

            <form id="createForm" class="form-horizontal">
                <div class="form-group form-group-first">
                    <label class="col-sm-2 control-label">名称</label>
                    <div class="col-sm-8">
                        <label class="control-label detail-label">
                            ${entity.name}
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">分类</label>
                    <div class="col-sm-8">
                        <label class="control-label detail-label">
                            ${entity.catalogName}
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">详情</label>
                    <div class="col-sm-8">
                        <label class="control-label detail-label">
                            ${entity.description}
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">关键词</label>
                    <div class="col-sm-8">
                        <label class="control-label detail-label">
                            ${entity.keyword}
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">是否上架</label>
                    <div class="col-sm-8">
                        <label class="control-label detail-label">
                            <c:choose>
                                <c:when test="${entity.isShow}">
                                    是
                                </c:when>
                                <c:otherwise>
                                    否
                                </c:otherwise>
                            </c:choose>
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">是否置顶</label>
                    <div class="col-sm-8">
                        <label class="control-label detail-label">
                            <c:choose>
                                <c:when test="${entity.isTop}">
                                    是
                                </c:when>
                                <c:otherwise>
                                    否
                                </c:otherwise>
                            </c:choose>
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">产品图片</label>
                    <div class="col-sm-8">
                        <c:forEach var="pictureImg" items="${entity.images}">
                            <div class="text-center thumbnail">
                                <img src="${ctx}${pictureImg}" class="img-responsive"
                                     style="max-height: 300px;">
                            </div>
                        </c:forEach>
                    </div>
                </div>

            </form>

        </div>
    </div>
</div>
</body>
</html>
